package com.ctshk.rpc.system.req;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 组织架构
 * </p>
 *
 * @author 谢诗宏
 * @since 2020-12-22
 */
@Data
@ApiModel(value="SysDepartment对象", description="组织架构请求对象")
public class SysDepartmentReq implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @NotBlank(message = "名称必填")
    @ApiModelProperty(value = "名称", required = true)
    private String title;

    @ApiModelProperty(value = "父级部门")
    private Long parentId;

    @NotNull(message = "组织类型必填")
    @ApiModelProperty(value = "组织类型", required = true)
    private Long orgType;

    @NotNull(message = "优先级必填")
    @ApiModelProperty(value = "优先级", required = true)
    private Integer sort;

    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    @ApiModelProperty(value = "成本中心编码")
    private String costCode;

    @ApiModelProperty(value = "业务类型")
    private Long businessTypeId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "是否有效")
    private int status = 1;

}
